package com.kgc.service.interf;

import com.kgc.entity.Activities;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public interface ActivitiesService {
    //添加活动
    int addAction(Activities activities);

    //删除活动
    int deleteAction(Integer activityID);

    //修改活动
    int updateAction(Activities activities);

    //用户查询所有活动
    List<Activities> getAllActivities();


    //用户报名指定活动
    int userSignUp(Integer activityId, String userPhone, Integer userId);

    //查询已结束活动
    List<Activities> getEndActivities();

    //查询未结束活动
    List<Activities> getStartActivities();

    //用户查询报名的活动
    List<Activities> getUserSignUpActivities(Integer userId);

    //管理员查看所有活动
    List<Activities> getAllActivities1();
}
